From f8bd0a6f6e7a0e7021a5e6570d943a6f83a829ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 9 May 2005 11:54:37 +0000 Subject: [PATCH] * Checking against Exif::mFlatExif, Exif::mValidExif no longer exists --- includes/Image.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Image.php b/includes/Image.php index 105c4269ee..5100d0c8b5 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1151,9 +1151,8 @@ class Image if ( $this->type !== '2' ) return array (); $exif = exif_read_data( $this->imagePath ); - foreach($exif as $k => $v) { - if ( !in_array($k, $this->exif->mValidExif) ) { + if ( !in_array($k, array_keys($this->exif->mFlatExif)) ) { wfDebug( "Image::retrieveExifData: '$k' is not a valid Exif tag (type: '" . gettype($v) . "'; data: '$v')\n"); unset($exif[$k]); } -- 2.20.1